﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;

namespace BattleTank3D
{
    class Obstaculo
    {
        public Model obstaculo {get; set;}
        public Vector3 position { get; set;}
        public float rotation { get; set; }

        public Obstaculo(Model model, Vector3 pos)
        {
            this.obstaculo = model;
            this.position = pos;
            this.rotation = 0;
        }

        public void Draw(Matrix view, Matrix proj)
        {
            this.obstaculo.Draw(Matrix.CreateTranslation(this.position)*Matrix.CreateRotationY(this.rotation), view, proj);
        }
    }
}
